﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<UncleBobWebService.Models.HMRegisterModel>" %>
<!DOCTYPE html>

<html>
<head id="Head1" runat="server">
    <meta name="viewport" content="width=device-width" />
    <title>View Application</title>
    <link href="/Theme/UncleBobTheme.css" rel="Stylesheet" />
</head>
<script type="text/javascript">
    ShowModelPopUp = function () {
        window.showModalDialog('/HMMainMenu/HMComments', "WindowPopup", 'width=300px,height=200px');
    }
</script>

<body class="body">
    <!-- Headers -->
    <h2>Application</h2>

    <div class="box">
      
        <!-- Buttons -->

      <%using (Html.BeginForm("FormAction", "HMMainMenu")) {%>
        
           <div class="appRow">
           <h3>Applicant Information:</h3></div>
           <%{%>
           <div class="appRow">
           <h4>Username:</h4>
           <span class="appCell"><%=Html.DisplayFor(model => Model.RegModel.Username)%></span></div>

           <div class="appRow">
           <h4>Full Name:</h4>
           <span class="appCell"><%=Html.DisplayFor(model => Model.RegModel.FirstName)%>          
           <%=Html.DisplayFor(model => Model.RegModel.MI)%> 
           <%=Html.DisplayFor(model => Model.RegModel.LastName)%></span>     
           </div>

           <div class="appRow">
           <h4>E-mail Address:</h4>      
           <span class="appCell"><%=Html.DisplayFor(model => Model.RegModel.Email)%></span></div>
           <div class="appRow">
           <h4>Address:</h4>
           <span class="appCell"><%=Html.DisplayFor(model => Model.RegModel.Address)%></span></div>
           <div class="appRow">
           <h4>Phone Number:</h4>
           <span class="appCell"><%=Html.DisplayFor(model => Model.RegModel.PhoneNumber)%></span></div>
           <div class="appRow">
           
              
           <br /><br />
                     
           <%}%>   
               

           <h3>Applicant Questions:</h3>
           <% foreach (var application in Model.questions) {%>

           <div class="alignLeft">
           <h4>Question:</h4>
           <%=Html.DisplayFor(model => application.Question)%></div> 
           <br />
           <div class="alignLeft">
           <h4>Answer:</h4>
           <%=Html.DisplayFor(model => application.Answer)%></div> 
           &nbsp               
                        
          
           <br /><br />
           
           <%}%>    
           
           </div>
           
           <div class="alignLeft">
           <h3>Hiring Manager Comments:</h3>
         
           <%=Html.DisplayFor(model => Model.jobApps[0].CommentContainer.Comment)%> </div>

            <br /><br /><br /> 
   
            <input class="button" type="submit" id="btnpopup" name="addComment" value="Add Comment" />
            <input class="applicant_boxes" type="submit" id="Submit7" name="goBack" value="Go Back" /> 
            
          
            <br /> 
           
       <%}%>
       
    </div>
    
</body>
</html>
